package com.dunhor.scala

class UsageOfApply {

}

class ApplyTest{
  def test: Unit ={
    println("test")
  }
}

object ApplyTest{
  def apply: ApplyTest = new ApplyTest()
  def static: Unit ={
    println("I am a static method!!!")
  }
}

object UsageOfApply extends App{
//  ApplyTest.static
  val a = new ApplyTest
  a.test
}
